<?php
/**
 * 删除操作
 */
require ('conn.php');
$u_id=$_GET['id'];
$delete="delete from t_user where u_id=$u_id";
$query=mysqli_query($conn,$delete);
if (isset($query)){
    echo "<script>alert('删除成功！');location.href='index.php';</script>";
}else{
    echo "<script>alert('删除失败！');location.href='index.php';</script>";
}